package me.xiaosiqi.dao.system;

import me.xiaosiqi.domain.system.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 角色Dao
 * @author xiaosiqi
 * @date 2021/6/7 17:37
 */
public interface RoleDao {
    int save(Role role);

    int delete(Role role);

    int update(Role role);

    Role findById(String id);

    List<Role> findAll();

    List<Role> findAllRoleByUserId(String userId);

    void updateRole(@Param("userId") String roleId, @Param("roleIds")String[] moduleIds);
    void deleteUserId(String userId);
}